mirror of https://github.com/apache/cloudstack.git
Create UI for handling new tag API. This currently supports the detail view and multi-edit
To enable tags UI, add a 'tags' object to each detailView/multiEdit configuration:
tabs: {
...
details: {
...
tags: {
actions: {
add: function(args) {
setTimeout(function() {
args.response.success({
notification: {
desc: 'Add tags for instance',
poll: testData.notifications.testPoll
}
});
}, 500);
},
remove: function(args) {
args.response.success({
notification: {
desc: 'Remove tags for instance',
poll: testData.notifications.testPoll
}
});
}
},
dataProvider: function(args) {
args.response.success({
data: [
{
id: '1',
key: 'user',
value: 'brian'
},
{
id: '2',
key: 'region',
value: 'usa'
}
]
});
}
}
...
Conflicts:
ui/css/cloudstack3.css
ui/scripts/ui/widgets/tagger.js
|
||
|---|---|---|
| .. | ||
| ui | ||
| ui-custom | ||
| accounts.js | ||
| cloud.core.callbacks.js | ||
| cloudStack.js | ||
| configuration.js | ||
| dashboard.js | ||
| domains.js | ||
| events.js | ||
| globalSettings.js | ||
| installWizard.js | ||
| instanceWizard.js | ||
| instances.js | ||
| lbStickyPolicy.js | ||
| network.js | ||
| projects.js | ||
| sharedFunctions.js | ||
| storage.js | ||
| system.js | ||
| templates.js | ||
| vpc.js | ||
| zoneWizard.js | ||