Improve permissions table
This commit is contained in:
parent
05827d9202
commit
4d3bc7d8e6
@ -201,6 +201,9 @@
|
|||||||
p {
|
p {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
h5 {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
ul {
|
ul {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
padding-left: 30px;
|
padding-left: 30px;
|
||||||
|
|||||||
@ -741,7 +741,7 @@ define([
|
|||||||
};
|
};
|
||||||
// Global rights
|
// Global rights
|
||||||
var rows = [];
|
var rows = [];
|
||||||
var firstRow = ['', Messages.share_linkView, Messages.share_linkEdit,
|
var firstRow = [Messages.teams_table_role, Messages.share_linkView, Messages.share_linkEdit,
|
||||||
Messages.teams_table_admins, Messages.teams_table_owners];
|
Messages.teams_table_admins, Messages.teams_table_owners];
|
||||||
rows.push(h('tr', makeRow(firstRow, true)));
|
rows.push(h('tr', makeRow(firstRow, true)));
|
||||||
rows.push(h('tr', makeRow([Messages.team_viewers, 'x', '', '', ''])));
|
rows.push(h('tr', makeRow([Messages.team_viewers, 'x', '', '', ''])));
|
||||||
@ -752,28 +752,38 @@ define([
|
|||||||
|
|
||||||
var content = [
|
var content = [
|
||||||
h('h4', Messages.teams_table_generic),
|
h('h4', Messages.teams_table_generic),
|
||||||
h('p', Messages.teams_table_genericHint),
|
h('p', [
|
||||||
|
Messages.teams_table_generic_view,
|
||||||
|
h('br'),
|
||||||
|
Messages.teams_table_generic_edit,
|
||||||
|
h('br'),
|
||||||
|
Messages.teams_table_generic_admin,
|
||||||
|
h('br'),
|
||||||
|
Messages.teams_table_generic_own,
|
||||||
|
h('br')
|
||||||
|
]),
|
||||||
t
|
t
|
||||||
];
|
];
|
||||||
|
|
||||||
APP.module.execCommand('GET_EDITABLE_FOLDERS', {
|
APP.module.execCommand('GET_EDITABLE_FOLDERS', {
|
||||||
teamId: APP.team
|
teamId: APP.team
|
||||||
}, function (arr) {
|
}, function (arr) {
|
||||||
console.log(arr);
|
|
||||||
if (!Array.isArray(arr) || !arr.length) {
|
if (!Array.isArray(arr) || !arr.length) {
|
||||||
return void $blockContainer.find('.cp-modal').append(content);
|
return void $blockContainer.find('.cp-modal').append(content);
|
||||||
}
|
}
|
||||||
content.push(h('h4', Messages.teams_table_specific));
|
content.push(h('h5', Messages.teams_table_specific));
|
||||||
content.push(h('p', Messages.teams_table_specificHint));
|
content.push(h('p', Messages.teams_table_specificHint));
|
||||||
var paths = arr.map(function (obj) {
|
var paths = arr.map(function (obj) {
|
||||||
obj.path.push(obj.name);
|
obj.path.push(obj.name);
|
||||||
return h('li', obj.path.join('/'));
|
return h('li', obj.path.join('/'));
|
||||||
});
|
});
|
||||||
content.push(h('ul', paths));
|
content.push(h('ul', paths));
|
||||||
|
/*
|
||||||
var rows = [];
|
var rows = [];
|
||||||
rows.push(h('tr', makeRow(firstRow, true)));
|
rows.push(h('tr', makeRow(firstRow, true)));
|
||||||
rows.push(h('tr', makeRow([Messages.team_viewers, 'x', 'x', '', ''])));
|
rows.push(h('tr', makeRow([Messages.team_viewers, 'x', 'x', '', ''])));
|
||||||
content.push(h('table', rows));
|
content.push(h('table', rows));
|
||||||
|
*/
|
||||||
$blockContainer.find('.cp-modal').append(content);
|
$blockContainer.find('.cp-modal').append(content);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user