Skip to content

Commit

Permalink
🐛 Fix: plugin config-form && default plugin logo
Browse files Browse the repository at this point in the history
  • Loading branch information
Molunerfinn committed Dec 20, 2019
1 parent bc8e641 commit 514fc40
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 181 deletions.
6 changes: 3 additions & 3 deletions src/renderer/components/ConfigForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ import { cloneDeep, union } from 'lodash'
name: 'config-form'
})
export default class extends Vue {
@Prop(Array) readonly config: Array<any> = []
@Prop(String) readonly type: string = ''
@Prop(String) readonly id: string = ''
@Prop() private config!: any[]
@Prop() readonly type!: string
@Prop() readonly id!: string
configList = []
ruleForm = {}
@Watch('config', {
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/pages/Plugin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div class="plugin-item" :class="{ 'darwin': os === 'darwin' }">
<div class="cli-only-badge" v-if="!item.gui" title="CLI only">CLI</div>
<img class="plugin-item__logo" :src="item.logo"
onerror="this.src='static/roundLogo.png'"
:onerror="defaultLogo"
>
<div
class="plugin-item__content"
Expand Down Expand Up @@ -127,6 +127,7 @@ export default class extends Vue {
needReload = false
id = ''
os = ''
defaultLogo: string = 'this.src="https://cdn.jsdelivr.net/gh/Molunerfinn/PicGo@dev/public/roundLogo.png"'
get npmSearchText () {
return this.searchText.match('picgo-plugin-')
? this.searchText
Expand Down
Loading

0 comments on commit 514fc40

Please sign in to comment.