Skip to content

Commit

Permalink
Fix sourceDorpRef toggle bug and add keyup event listener for registe…
Browse files Browse the repository at this point in the history
…rAppStore
  • Loading branch information
jerrykuku committed Jan 12, 2024
1 parent e101450 commit 6b408c9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main/src/components/Apps/AppStoreSourceManagement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ function unregisterAppStore(id) {
}
function redirectURL() {
sourceDorpRef.value.toggle();
if(sourceDorpRef.value) {
sourceDorpRef.value.toggle();
}
window.open("https://awesome.casaos.io/content/3rd-party-app-stores/list.html", "_blank", "noopener");
}
Expand Down Expand Up @@ -133,7 +135,6 @@ function getSourceList() {
onMounted(() => {
getSourceList()
subscribe("app-store:register-end", res => {
console.log(res)
app.$buefy.toast.open({
message: "Updating the information source of the app store is complete.",
duration: 5000,
Expand Down Expand Up @@ -210,7 +211,7 @@ onBeforeUnmount(() => {
<div v-else-if="componentState === 'active_input_state'" key="3" class="is-flex is-align-items-center">
<b-field class="mb-0">
<b-input class="_sources_input" ref="inputSourceURL" v-model="url"
:disabled="addLoadingState"></b-input>
:disabled="addLoadingState" v-on:keyup.enter.native="registerAppStore(url)"></b-input>
<b-tooltip label="Get more apps" position="is-bottom" class="add-tooltip" type="is-dark"
:class="{ disabled: addLoadingState }">
<b-icon class="is-clickable" icon="question-outline" pack="casa" size="is-small"
Expand Down
10 changes: 10 additions & 0 deletions main/src/components/account/AccountPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,16 @@ export default {
</script>

<style lang="scss" scoped>
.modal-card {
@include mobile {
margin: 0 !important;
&.w-424 {
width: auto !important;
}
}
}
.account-item {
cursor: pointer;
Expand Down

0 comments on commit 6b408c9

Please sign in to comment.