This commit is contained in:
2020-04-19 18:38:50 +00:00
parent 95b55836c3
commit 202526b97e
3 changed files with 32 additions and 5 deletions

View File

@@ -219,7 +219,10 @@ RESEARCH
------------------------ /WIKI --------------------------- ------------------------ /WIKI ---------------------------
todo: document that emojis can be used in any text field and key combo on windows is winkey-period todo: document that emojis can be used in any text field and key combo on windows is winkey-period
-other os's too? -other os's too?
todo: make the navigation pane sticky so it remembers the last setting of hidden or showing in large view size todo: make the navigation pane sticky so it remembers the last setting of hidden or showing in large view size
@@ -261,6 +264,9 @@ todo: ATTACHMENTS
- Maybe thumbnail pictures in the UI for easier download when viewing the list of attachments - Maybe thumbnail pictures in the UI for easier download when viewing the list of attachments
- Consider ability to show attachment links / thumbnails at bottom of edit forms - Consider ability to show attachment links / thumbnails at bottom of edit forms
todo: AFTER ATTACHMENTS
- Go back and finish off wiki image attachment UI and code
TODO: PRIORITIZE THE FOLLOWING BLOCK AND move INTO appropriate STAGES TODO: PRIORITIZE THE FOLLOWING BLOCK AND move INTO appropriate STAGES
(these items came up looking through the raven priority 1 cases for general UI stuff) (these items came up looking through the raven priority 1 cases for general UI stuff)

View File

@@ -167,7 +167,7 @@ export default {
"InsertImage", "InsertImage",
"ImageUrl", "ImageUrl",
"ImageDescription", "ImageDescription",
"File" "AttachFile"
], ],
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////

View File

@@ -215,7 +215,7 @@
<div> <div>
<v-tabs grow color="primary"> <v-tabs grow color="primary">
<v-tab>URL</v-tab> <v-tab>URL</v-tab>
<v-tab>{{ $ay.t("File") }}</v-tab> <v-tab>{{ $ay.t("Attachments") }}</v-tab>
<v-tab-item <v-tab-item
><div class="ma-6"> ><div class="ma-6">
@@ -230,7 +230,18 @@
></v-tab-item> ></v-tab-item>
<v-tab-item <v-tab-item
><div class="ma-6"> ><div class="ma-6">
FILE SELECT HERE FILE UPLOAD HERE <v-select
:label="$ay.t('Attachments')"
v-model="selectedImageAttachment"
:items="availableAttachments()"
item-text="name"
item-value="id"
></v-select>
<!--
<v-file-input
:label="$ay.t('AttachFile')"
prepend-icon="fa-paperclip"
></v-file-input> -->
<v-text-field <v-text-field
v-model="imageText" v-model="imageText"
@@ -352,12 +363,14 @@ export default {
linkText: "", linkText: "",
imageMenu: false, imageMenu: false,
imageUrl: "", imageUrl: "",
imageText: "" imageText: "",
selectedImageAttachment: null
}; };
}, },
props: { props: {
value: String, value: String,
readOnly: Boolean readOnly: Boolean,
attachments: Array
}, },
watch: { watch: {
value(value) { value(value) {
@@ -740,6 +753,13 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.imageMenu = true; this.imageMenu = true;
}); });
},
availableAttachments() {
return [
{ id: 0, name: "Stub attachment one" },
{ id: 1, name: "Stub attachment two" },
{ id: 2, name: "Stub attachment three" }
];
} }
} }
}; };
@@ -763,6 +783,7 @@ todo: Undo / redo (ctrl-z / ctrl-y) ability?
todo: wiki controls showing before widget form has loaded causing annoying ability to click but then doesn't work right away todo: wiki controls showing before widget form has loaded causing annoying ability to click but then doesn't work right away
- wiki controls (and indeed nothing at all) should show on form until the object is finished loading - wiki controls (and indeed nothing at all) should show on form until the object is finished loading
todo: widget form, remove wiki menu option
todo: Add wikiContent field to form defintions at server so can hide or show in form customization todo: Add wikiContent field to form defintions at server so can hide or show in form customization
- Also for dataLists? (for reporting not grid I mean) - Also for dataLists? (for reporting not grid I mean)