| //- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| .popover.settings.refresh-rate(tabindex='-1') |
| h3.popover-title Refresh rate |
| button.close(ng-click='$hide()') |
| svg(ignite-icon='cross') |
| .popover-content |
| form.theme--ignite(name='popoverForm' novalidate ng-init='refreshRate = {}') |
| .form-field.form-field__text.ignite-form-field |
| .form-field__control |
| input(ng-init='refreshRate.value = paragraph.rate.value' ng-model='refreshRate.value' type='number' min='1' required ignite-auto-focus) |
| .form-field__control |
| button.select-toggle(ng-init='refreshRate.unit = paragraph.rate.unit' ng-model='refreshRate.unit' required placeholder='Time unit' bs-select bs-options='item.value as item.label for item in timeUnit' tabindex='0') |
| .form-field.form-field__text.ignite-form-field |
| .actions |
| button.btn-ignite.btn-ignite--primary( |
| ng-disabled='popoverForm.$invalid' |
| ng-click='startRefresh(paragraph, refreshRate.value, refreshRate.unit); $hide()' |
| ng-hide='paragraph.rate.installed' |
| ) Start |
| |
| button.btn-ignite.btn-ignite--primary( |
| ng-disabled='popoverForm.$invalid || (refreshRate.unit === paragraph.rate.unit && refreshRate.value === paragraph.rate.value)' |
| ng-click='startRefresh(paragraph, refreshRate.value, refreshRate.unit); $hide()' |
| ng-hide='!paragraph.rate.installed' |
| ) Start new |
| |
| button.btn-ignite.btn-ignite--primary( |
| ng-click='stopRefresh(paragraph); $hide()' |
| ng-hide='!paragraph.rate.installed' |
| ) Stop |
| |