✨ Allow updating remote timetables with permission
This commit is contained in:
@ -7,11 +7,12 @@ import {
|
||||
TrashIcon,
|
||||
AlertCircleIcon,
|
||||
CopyIcon,
|
||||
UploadCloudIcon,
|
||||
} from "lucide-vue-next";
|
||||
import { DownloadIcon } from "lucide-vue-next";
|
||||
|
||||
defineProps(["timetable", "editable", "selected"]);
|
||||
defineEmits(["click", "edit", "delete", "copy", "export"]);
|
||||
defineProps(["timetable", "editable", "remote", "selected"]);
|
||||
defineEmits(["click", "edit", "delete", "copy", "export", "upload"]);
|
||||
|
||||
const deleteConfirm = ref(false);
|
||||
|
||||
@ -38,7 +39,8 @@ watch(deleteConfirm, (value) => {
|
||||
|
||||
<div class="buttons">
|
||||
<DownloadIcon @click="$emit('export')" />
|
||||
<Edit2Icon v-if="editable" @click="$emit('edit')" />
|
||||
<Edit2Icon v-if="editable && !remote" @click="$emit('edit')" />
|
||||
<UploadCloudIcon v-if="editable && remote" @click="$emit('upload')" />
|
||||
<CopyIcon @click="$emit('copy')" />
|
||||
<TrashIcon
|
||||
v-if="editable && !deleteConfirm"
|
||||
|
Reference in New Issue
Block a user