Skip to content

Commit

Permalink
Update packages/frontend/src/pages/instance-info.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo authored May 23, 2024
1 parent c8aae30 commit fa30615
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/src/pages/instance-info.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ SPDX-License-Identifier: AGPL-3.0-only
{{ i18n.ts._delivery._type[suspendedState] }}
</template>
</MkKeyValue>
<MkButton v-if="suspendedState == 'none'" :disabled="!instance" @click="stopDelivery">{{ i18n.ts._delivery.stop }}</MkButton>
<MkButton v-if="suspendedState != 'none'" :disabled="!instance" @click="resumeDelivery">{{ i18n.ts._delivery.resume }}</MkButton>
<MkButton v-if="suspendedState === 'none'" :disabled="!instance" @click="stopDelivery" danger>{{ i18n.ts._delivery.stop }}</MkButton>

Check failure on line 46 in packages/frontend/src/pages/instance-info.vue

View workflow job for this annotation

GitHub Actions / lint (frontend)

Attribute "danger" should go before "@click"
<MkButton v-if="suspendedState !== 'none'" :disabled="!instance" @click="resumeDelivery">{{ i18n.ts._delivery.resume }}</MkButton>
<MkSwitch v-model="isBlocked" :disabled="!meta || !instance" @update:modelValue="toggleBlock">{{ i18n.ts.blockThisInstance }}</MkSwitch>
<MkSwitch v-model="isSilenced" :disabled="!meta || !instance" @update:modelValue="toggleSilenced">{{ i18n.ts.silenceThisInstance }}</MkSwitch>
<MkButton @click="refreshMetadata"><i class="ti ti-refresh"></i> Refresh metadata</MkButton>
Expand Down

0 comments on commit fa30615

Please sign in to comment.