diff --git a/frontend/src/components/ShareDomain/ShareDomainDialog.vue b/frontend/src/components/ShareDomain/ShareDomainDialog.vue
index a6d6e14..3fe4a34 100644
--- a/frontend/src/components/ShareDomain/ShareDomainDialog.vue
+++ b/frontend/src/components/ShareDomain/ShareDomainDialog.vue
@@ -41,7 +41,7 @@
-
+
@@ -54,6 +54,7 @@ import { IDomainOwnerDisplay } from '../../types/DomainTypes';
import { IUser, IUserDisplay } from '../../types/UserTypes';
import { api } from 'boot/axios';
import SharingUserList from 'components/ShareDomain/SharingUserList.vue';
+import { Dialog } from 'quasar'
interface Props {
modelValue: boolean;
@@ -111,6 +112,28 @@ watch(
}
);
+const checkClose = () => {
+ if (!canSharedUserFilter.value) {
+ close();
+ return;
+ }
+ Dialog.create({
+ title: '注意',
+ message: '選択済だがまだ付与未完了のユーザーがあります。
必要な操作を選んでください。',
+ html: true,
+ persistent: true,
+ ok: {
+ color: 'primary',
+ label: '付与'
+ },
+ cancel: '直接閉じる',
+ }).onCancel(() => {
+ close();
+ }).onOk(() => {
+ shareTo(canSharedUserFilter.value as IUserDisplay);
+ });
+};
+
const close = () => {
emit('close');
};
diff --git a/frontend/src/components/ShowDialog.vue b/frontend/src/components/ShowDialog.vue
index 729c442..92e38c0 100644
--- a/frontend/src/components/ShowDialog.vue
+++ b/frontend/src/components/ShowDialog.vue
@@ -12,7 +12,7 @@
-
+
@@ -30,6 +30,7 @@ export default {
height:String,
minWidth:String,
minHeight:String,
+ okBtnLabel:String,
okBtnLoading:Boolean,
okBtnAutoClose:{
type: Boolean,
diff --git a/frontend/src/components/dialog/DetailFieldTable.vue b/frontend/src/components/dialog/DetailFieldTable.vue
index 84068c9..8ed619c 100644
--- a/frontend/src/components/dialog/DetailFieldTable.vue
+++ b/frontend/src/components/dialog/DetailFieldTable.vue
@@ -6,13 +6,21 @@
-
+
+
-
+
+
+
+ {{ props.row[col.name] }}
+
+
+
+
@@ -41,6 +49,14 @@ export default {
fetchData: {
type: Function as PropType<() => Promise>,
required: true
+ },
+ sortBy: {
+ type: String,
+ required: false
+ },
+ sortDesc: {
+ type: Boolean,
+ required: false
}
},
emits: ['update:selected'],
@@ -64,6 +80,8 @@ export default {
selected,
isLoaded,
pagination: ref({
+ sortBy: props.sortBy || undefined,
+ descending: props.sortDesc || undefined,
rowsPerPage: 10
}),
emitSelected
diff --git a/frontend/src/components/dialog/VersionHistory.vue b/frontend/src/components/dialog/VersionHistory.vue
index 0205e04..93b97fb 100644
--- a/frontend/src/components/dialog/VersionHistory.vue
+++ b/frontend/src/components/dialog/VersionHistory.vue
@@ -3,19 +3,32 @@
detailField="comment"
type="single"
:columns="columns"
+ sortBy="id"
+ :sortDesc="true"
:fetchData="fetchVersionHistory"
@update:selected="(item) => { selected = item }"
- />
+ >
+
+
+ {{ p.row.id }}
+ 現在
+
+
+