mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-21 21:36:26 -08:00
G
This commit is contained in:
parent
92c48a52ef
commit
fce3397014
|
@ -181,11 +181,19 @@ export function fileOptions(optPicker,file) {
|
|||
|
||||
if (exp && exp.selected) {
|
||||
|
||||
if (file.tag) {
|
||||
fetch(`/files/manage`, {method: "POST", body: JSON.stringify({
|
||||
target: [ file.id ],
|
||||
action: "setTag"
|
||||
})}).then(fetchFilePointers)
|
||||
return
|
||||
}
|
||||
|
||||
fetch(`/files/manage`, {method: "POST", body: JSON.stringify({
|
||||
target: [ file.id ],
|
||||
action: "setTag",
|
||||
|
||||
value: exp.selected || null
|
||||
value: exp.tag || null
|
||||
})}).then((response) => {
|
||||
|
||||
if (response.status != 200) {
|
||||
|
|
Loading…
Reference in a new issue