mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
SYWEB-140: Redact button layout.
This commit is contained in:
parent
3db0efa69f
commit
e7ccd26c70
@ -458,6 +458,10 @@ textarea, input {
|
|||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.redact-button {
|
||||||
|
float: left
|
||||||
|
}
|
||||||
|
|
||||||
.room-info-textarea-content {
|
.room-info-textarea-content {
|
||||||
height: auto;
|
height: auto;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -1087,6 +1087,7 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput', 'a
|
|||||||
console.log("Redact event >> " + JSON.stringify($scope.event_selected));
|
console.log("Redact event >> " + JSON.stringify($scope.event_selected));
|
||||||
$modalInstance.close("redact");
|
$modalInstance.close("redact");
|
||||||
};
|
};
|
||||||
|
$scope.dismiss = $modalInstance.dismiss;
|
||||||
})
|
})
|
||||||
.controller('RoomInfoController', function($scope, $modalInstance, $filter, matrixService) {
|
.controller('RoomInfoController', function($scope, $modalInstance, $filter, matrixService) {
|
||||||
console.log("Displaying room info.");
|
console.log("Displaying room info.");
|
||||||
|
@ -5,11 +5,15 @@
|
|||||||
<pre> {{event_selected | json}} </pre>
|
<pre> {{event_selected | json}} </pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button ng-click="redact()" type="button" class="btn btn-danger"
|
<button ng-click="redact()" type="button" class="btn btn-danger redact-button"
|
||||||
ng-disabled="!room.current_room_state.state('m.room.ops_levels').content.redact_level || !pow(room_id, state.user_id) || pow(room_id, state.user_id) < room.current_room_state.state('m.room.ops_levels').content.redact_level"
|
ng-disabled="!room.current_room_state.state('m.room.ops_levels').content.redact_level || !pow(room_id, state.user_id) || pow(room_id, state.user_id) < room.current_room_state.state('m.room.ops_levels').content.redact_level"
|
||||||
title="Delete this event on all home servers. This cannot be undone.">
|
title="Delete this event on all home servers. This cannot be undone.">
|
||||||
Redact
|
Redact
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
<button ng-click="dismiss()" type="button" class="btn">
|
||||||
|
Close
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user