Ariel Weinberger pushed to branch feature/CHANNELMGR-1274 at cms-community / hippo-addon-channel-manager
Commits: 9745ae71 by Ariel Weinberger at 2017-09-13T11:37:02+02:00 CHANNELMGR-1274 Fix empty mdDialog content - Consume local variables in multiActionDialog controller via injected "locals" parameter. - Add aria-label to multiActionDialog.html (fix warning) - - - - - 2 changed files: - frontend-ng/src/app/channel/sidePanels/rightSidePanel/multiActionDialog/multiActionDialog.controller.js - frontend-ng/src/app/channel/sidePanels/rightSidePanel/multiActionDialog/multiActionDialog.html Changes: ===================================== frontend-ng/src/app/channel/sidePanels/rightSidePanel/multiActionDialog/multiActionDialog.controller.js ===================================== --- a/frontend-ng/src/app/channel/sidePanels/rightSidePanel/multiActionDialog/multiActionDialog.controller.js +++ b/frontend-ng/src/app/channel/sidePanels/rightSidePanel/multiActionDialog/multiActionDialog.controller.js @@ -15,10 +15,14 @@ */ class MultiActionDialogCtrl { - constructor($mdDialog) { + constructor($mdDialog, locals) { 'ngInject'; this.$mdDialog = $mdDialog; + + this.title = locals.title; + this.message = locals.message; + this.actions = locals.actions; } action(action) { ===================================== frontend-ng/src/app/channel/sidePanels/rightSidePanel/multiActionDialog/multiActionDialog.html ===================================== --- a/frontend-ng/src/app/channel/sidePanels/rightSidePanel/multiActionDialog/multiActionDialog.html +++ b/frontend-ng/src/app/channel/sidePanels/rightSidePanel/multiActionDialog/multiActionDialog.html @@ -14,7 +14,7 @@ limitations under the License. --> -<md-dialog flex="50"> +<md-dialog flex="50" aria-label="{{ $ctrl.title }}"> <md-dialog-content> <div class="md-dialog-content"> <h3 ng-if="$ctrl.title">{{ ::$ctrl.title }}</h3> View it on GitLab: https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/9745ae7106255745de9b26a2823b6ea358362db7 --- View it on GitLab: https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/9745ae7106255745de9b26a2823b6ea358362db7 You're receiving this email because of your account on code.onehippo.org.
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn