Skip to content
Snippets Groups Projects
Commit e7ccd26c authored by Kegan Dougal's avatar Kegan Dougal
Browse files

SYWEB-140: Redact button layout.

parent 3db0efa6
No related branches found
No related tags found
No related merge requests found
......@@ -458,6 +458,10 @@ textarea, input {
font-family: monospace;
}
.redact-button {
float: left
}
.room-info-textarea-content {
height: auto;
width: 100%;
......
......@@ -1087,6 +1087,7 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput', 'a
console.log("Redact event >> " + JSON.stringify($scope.event_selected));
$modalInstance.close("redact");
};
$scope.dismiss = $modalInstance.dismiss;
})
.controller('RoomInfoController', function($scope, $modalInstance, $filter, matrixService) {
console.log("Displaying room info.");
......
......@@ -5,11 +5,15 @@
<pre> {{event_selected | json}} </pre>
</div>
<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"
title="Delete this event on all home servers. This cannot be undone.">
Redact
</button>
</button>
<button ng-click="dismiss()" type="button" class="btn">
Close
</button>
</div>
</script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment