cleanup + fixes for instance tab
This commit is contained in:
parent
f31a9a42da
commit
e6a6a06465
6 changed files with 9 additions and 7 deletions
|
|
@ -86,7 +86,7 @@ export default {
|
|||
},
|
||||
// Readable label
|
||||
label: {
|
||||
required: true,
|
||||
required: false,
|
||||
type: String,
|
||||
},
|
||||
// use unstyled, uh, style
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@
|
|||
<li>
|
||||
<ColorSetting
|
||||
hide-draft-buttons
|
||||
label=""
|
||||
path=":pleroma.:manifest.:theme_color"
|
||||
/>
|
||||
</li>
|
||||
|
|
@ -99,7 +100,7 @@
|
|||
override-backend-description
|
||||
override-backend-description-label
|
||||
override-available-options
|
||||
:options="limitLocalContentOptions"
|
||||
:options="[...limitLocalContentOptions]"
|
||||
path=":pleroma.:instance.:limit_to_local_content"
|
||||
/>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ export default {
|
|||
// The "server" part is primarily for local dev, but could be useful for alt-domain or multiuser usage.
|
||||
const url = path.includes('://') ? path : useInstanceStore().server + path
|
||||
return {
|
||||
mimetype: fileTypeExt(url),
|
||||
type: fileTypeExt(url),
|
||||
url,
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
{{ ' ' }}
|
||||
<ColorInput
|
||||
:id="path"
|
||||
:name="path"
|
||||
class="setting-control color-setting-input"
|
||||
:class="{ disabled: shouldBeDisabled }"
|
||||
:disabled="shouldBeDisabled"
|
||||
|
|
|
|||
|
|
@ -33,14 +33,14 @@ export default {
|
|||
const path = e[':src']
|
||||
if (!path) {
|
||||
return {
|
||||
mimetype: '',
|
||||
type: '',
|
||||
url: '',
|
||||
}
|
||||
}
|
||||
const url = path.includes('://') ? path : useInstanceStore().server + path
|
||||
|
||||
return {
|
||||
mimetype: fileTypeExt(url),
|
||||
type: fileTypeExt(url),
|
||||
url,
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@
|
|||
<div class="src-field">
|
||||
<Attachment
|
||||
class="src-attachment"
|
||||
:compact="compact"
|
||||
:compact="true"
|
||||
:attachment="attachment(item)"
|
||||
size="small"
|
||||
hide-description
|
||||
|
|
@ -70,7 +70,7 @@
|
|||
class="src-upload media-upload-icon"
|
||||
:class="{ disabled: shouldBeDisabled }"
|
||||
normal-button
|
||||
:accept-types="acceptTypes"
|
||||
accept-types="image"
|
||||
@uploaded="event => setMediaFile({ event, index })"
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue