inactive link when interpreter is not selected.

This commit is contained in:
astroshim 2016-09-01 00:59:08 +09:00
parent 123882df7d
commit aa30b3966e
2 changed files with 11 additions and 1 deletions

View file

@ -312,3 +312,11 @@
min-width: 150px;
max-width: 50%;
}
.inactivelink {
color: darkgrey;
cursor: default;
pointer-events: none;
}

View file

@ -33,7 +33,9 @@ limitations under the License.
as-sortable="interpreterSelectionListeners" data-ng-model="interpreterBindings">
<div data-ng-repeat="item in interpreterBindings" as-sortable-item>
<div>
<a ng-click="restartInterpreter(item)" ng-show="item.selected" tooltip="Restart">
<a ng-click="restartInterpreter(item)"
ng-class="{'inactivelink': !item.selected}"
tooltip="Restart">
<span class="glyphicon glyphicon-refresh btn-md"></span>
</a>&nbsp
<div as-sortable-item-handle