mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-01-24 14:24:47 +08:00
Disable role selector buttons when no role is selected (#792)
This commit is contained in:
parent
ed06e1a301
commit
0373b5345d
@ -139,10 +139,10 @@ useHead(useSeo(i18n.t("userAdmin.title") + " " + route.params.user, null, route,
|
||||
<InputSelect v-model="selectedRole" :values="backendData.globalRoles" item-text="title" item-value="value"></InputSelect>
|
||||
</div>
|
||||
<div>
|
||||
<Button size="medium" @click="processRole(true)">{{ i18n.t("general.add") }}</Button>
|
||||
<Button size="medium" :disabled="!selectedRole" @click="processRole(true)">{{ i18n.t("general.add") }}</Button>
|
||||
</div>
|
||||
<div class="ml-4">
|
||||
<Button size="medium" @click="processRole(false)">{{ i18n.t("general.delete") }}</Button>
|
||||
<Button size="medium" :disabled="!selectedRole" @click="processRole(false)">{{ i18n.t("general.delete") }}</Button>
|
||||
</div>
|
||||
</div>
|
||||
</Card>
|
||||
|
Loading…
Reference in New Issue
Block a user