Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
Update maintenance mode to use lifecycleState (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
thevoiceofzeke authored and vertein committed Feb 1, 2017
1 parent b18f973 commit a3daf7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,7 @@ define(['angular'], function (angular) {
"target": "_blank",
"rel": "noopener noreferrer"
}
],
"maintenanceMode": false
]
},
hasWidgetURL: false
},
Expand All @@ -406,8 +405,7 @@ define(['angular'], function (angular) {
showdate: true,
titleLim: 40,
dateFormat: 'MM-dd-yyyy',
showShowing: true,
maintenanceMode: false
showShowing: true
},
hasWidgetURL: true,
widgetURL: ""
Expand Down Expand Up @@ -437,8 +435,7 @@ define(['angular'], function (angular) {
"target": "_blank",
"rel": "noopener noreferrer"
}
],
"maintenanceMode": false
]
},
description: 'A simple list of links'
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<md-card class="widget-frame" id="portlet-id-{{portlet.nodeId}}" aria-label="{{ portlet.title }} widget">

<!-- MAINTENANCE MODE OVERLAY -->
<div class="overlay__maintenance-mode" ng-if="portlet.widgetConfig.maintenanceMode">
<div class="overlay__maintenance-mode" ng-if="portlet.lifecycleState === 'MAINTENANCE'">
<div class="maintenance-content">
<p>
<md-icon class="md-warn">warning</md-icon>
Expand All @@ -13,7 +13,7 @@
<!-- HEADER -->
<md-card-header class="widget-header">
<!-- Widget Chrome -->
<md-button class="widget-action widget-info md-icon-button" aria-label="Description: {{ portlet.description }}" role="tooltip" ng-hide="portlet.widgetConfig.maintenanceMode">
<md-button class="widget-action widget-info md-icon-button" aria-label="Description: {{ portlet.description }}" role="tooltip" ng-hide="portlet.lifecycleState === 'MAINTENANCE'">
<md-tooltip md-direction="top" class="widget-action-tooltip">
{{ portlet.description }}
</md-tooltip>
Expand All @@ -22,7 +22,7 @@
<md-button class="widget-action widget-remove md-icon-button"
aria-label="remove {{ portlet.title }} widget from your home screen"
ng-click="widgetCtrl.removePortlet(portlet.nodeId, portlet.title)"
ng-hide="GuestMode || cantRemove || portlet.widgetConfig.maintenanceMode">
ng-hide="GuestMode || cantRemove || portlet.lifecycleState === 'MAINTENANCE'">
<md-icon>close</md-icon>
</md-button>

Expand Down Expand Up @@ -70,7 +70,7 @@
<div ng-switch-when="SWL">
<swl app="portlet" config="portlet.widgetConfig"></swl>
</div>

<div ng-switch-when="LTI_LAUNCH">
<lti-launch app="portlet" config="portlet.widgetConfig"></lti-launch>
</div>
Expand Down

0 comments on commit a3daf7f

Please sign in to comment.