Skip to content

Commit 6b408c9

Browse files
committed
Fix sourceDorpRef toggle bug and add keyup event listener for registerAppStore
1 parent e101450 commit 6b408c9

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

main/src/components/Apps/AppStoreSourceManagement.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ function unregisterAppStore(id) {
8686
}
8787
8888
function redirectURL() {
89-
sourceDorpRef.value.toggle();
89+
if(sourceDorpRef.value) {
90+
sourceDorpRef.value.toggle();
91+
}
9092
window.open("https://awesome.casaos.io/content/3rd-party-app-stores/list.html", "_blank", "noopener");
9193
}
9294
@@ -133,7 +135,6 @@ function getSourceList() {
133135
onMounted(() => {
134136
getSourceList()
135137
subscribe("app-store:register-end", res => {
136-
console.log(res)
137138
app.$buefy.toast.open({
138139
message: "Updating the information source of the app store is complete.",
139140
duration: 5000,
@@ -210,7 +211,7 @@ onBeforeUnmount(() => {
210211
<div v-else-if="componentState === 'active_input_state'" key="3" class="is-flex is-align-items-center">
211212
<b-field class="mb-0">
212213
<b-input class="_sources_input" ref="inputSourceURL" v-model="url"
213-
:disabled="addLoadingState"></b-input>
214+
:disabled="addLoadingState" v-on:keyup.enter.native="registerAppStore(url)"></b-input>
214215
<b-tooltip label="Get more apps" position="is-bottom" class="add-tooltip" type="is-dark"
215216
:class="{ disabled: addLoadingState }">
216217
<b-icon class="is-clickable" icon="question-outline" pack="casa" size="is-small"

main/src/components/account/AccountPanel.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,16 @@ export default {
339339
</script>
340340

341341
<style lang="scss" scoped>
342+
.modal-card {
343+
@include mobile {
344+
margin: 0 !important;
345+
346+
&.w-424 {
347+
width: auto !important;
348+
}
349+
}
350+
}
351+
342352
.account-item {
343353
cursor: pointer;
344354

0 commit comments

Comments
 (0)