Commit 5c0dcece authored by jeromecambon's avatar jeromecambon Committed by benjaminParisel

defect(widget_editor_info): Information message to explain read-only mode and save as... (#2694)

* Added new info message for standard widget view
* Do not display  icon for standard widget

Covers [UID-79](https://bonitasoft.atlassian.net/browse/UID-79)
parent c30b1b13
......@@ -30,7 +30,8 @@
remove: remove,
addError: addAlert.bind(null, gettext('error')),
addSuccess: addAlert.bind(null, gettext('success')),
addWarning: addAlert.bind(null, gettext('warning'))
addWarning: addAlert.bind(null, gettext('warning')),
addInfo: addAlert.bind(null, gettext('info'))
};
/**
......
......@@ -24,6 +24,10 @@
$scope.widget = artifact;
$scope.bonds = BONDS;
if (!$scope.widget.custom) {
alerts.addInfo(gettextCatalog.getString('To edit this standard widget, save it first as a new custom widget'), 5000);
}
var widgetRepo = artifactRepo;
keyBindingService.bindGlobal(['ctrl+s', 'command+s'], function() {
......
......@@ -11,7 +11,7 @@
widget editor
</span>
<h3 class="EditorHeader-name EditorHeader-name--custom">
<identicon name="{{widget.id}}" size="30" foreground-color="[203, 213, 225, 255]" background-color="[0,0,0,0]"></identicon>
<identicon ng-if="widget.custom" name="{{widget.id}}" size="30" foreground-color="[203, 213, 225, 255]" background-color="[0,0,0,0]"></identicon>
{{widget.name}}
</h3>
<div class="EditorHeader-actions">
......
......@@ -181,4 +181,4 @@
@color-alert-success: #8DC63F;
@color-alert-warning: #F89728;
@color-alert-error: #E31837;
@color-alert-info: #0B4361;
@color-alert-info: #10638f;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment