Add owners tab

This commit is contained in:
yflory
2020-02-18 10:28:36 +01:00
parent 4ec6d8072c
commit 81a0bbb0ef
4 changed files with 382 additions and 280 deletions

View File

@@ -284,6 +284,12 @@ define([
UIElements.getProperties = function (common, opts, cb) {
var data;
var content;
var button = [{
className: 'cancel',
name: Messages.filePicker_close,
onClick: function () {},
keys: [13,27]
}];
NThen(function (waitFor) {
getPropertiesData(common, opts, waitFor(function (e, _data) {
if (e) {
@@ -298,10 +304,17 @@ define([
waitFor.abort();
return void cb(e);
}
content = c[0];
content = UI.dialog.customModal(c[0], {
buttons: button
});
}));
}).nThen(function () {
var modal = UI.alert(content);
var tabs = UI.dialog.tabs([{
title: Messages.fc_prop,
icon: "fa fa-info-circle",
content: content
}]);
var modal = UI.openCustomModal(tabs);
cb (void 0, modal);
});
};