"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "horizon/static/framework/widgets/metadata/tree/metadata-tree-item.controller.js" between
horizon-22.1.0.tar.gz and horizon-23.0.0.tar.gz

About: OpenStack Horizon (Optional Service: Dashboard) provides a web-based self-service portal to interact with underlying OpenStack services, such as launching an instance, assigning IP addresses and configuring access controls.
The "Zed" series (latest release).

metadata-tree-item.controller.js  (horizon-22.1.0):metadata-tree-item.controller.js  (horizon-23.0.0)
skipping to change at line 35 skipping to change at line 35
* @name MetadataTreeItemController * @name MetadataTreeItemController
* @description * @description
* Controller used by `metadataTreeItem` * Controller used by `metadataTreeItem`
*/ */
function MetadataTreeItemController() { function MetadataTreeItemController() {
var ctrl = this; var ctrl = this;
ctrl.formatErrorMessage = formatErrorMessage; ctrl.formatErrorMessage = formatErrorMessage;
ctrl.opened = false; ctrl.opened = false;
if ('item' in ctrl && 'leaf' in ctrl.item && ctrl.item.leaf.type === 'array' this.$onInit = function init() {
) { if ('item' in ctrl && 'leaf' in ctrl.item && ctrl.item.leaf.type === 'arra
ctrl.values = ctrl.item.leaf.items.enum.filter(filter).sort(); y') {
ctrl.values = ctrl.item.leaf.items.enum.filter(filter).sort();
if (!ctrl.item.leaf.readonly) {
ctrl.addValue = addValue; if (!ctrl.item.leaf.readonly) {
ctrl.removeValue = removeValue; ctrl.addValue = addValue;
ctrl.switchOpened = switchOpened; ctrl.removeValue = removeValue;
ctrl.opened = ctrl.item.leaf.value.length === 0; ctrl.switchOpened = switchOpened;
ctrl.opened = ctrl.item.leaf.value.length === 0;
}
} }
} };
function formatErrorMessage(item, error) { function formatErrorMessage(item, error) {
if (error.min) { if (error.min) {
return ctrl.text.min + ' ' + item.leaf.minimum; return ctrl.text.min + ' ' + item.leaf.minimum;
} }
if (error.max) { if (error.max) {
return ctrl.text.max + ' ' + item.leaf.maximum; return ctrl.text.max + ' ' + item.leaf.maximum;
} }
 End of changes. 2 change blocks. 
10 lines changed or deleted 12 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)