Skip to content

Commit

Permalink
chore:Remove unused code and update method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghengxin committed Mar 22, 2024
1 parent 5871c70 commit fc9c013
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
8 changes: 1 addition & 7 deletions main/src/components/Apps/AppPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,6 @@
@updateDockerComposeCommands="updateDockerComposeCommands"
@updateDockerComposeServiceName="updateDockerComposeServiceName"
@updateMainName="name => (currentInstallId = name)"
@updateIsUncontrolledInstallParams="updateIsUncontrolledInstallParams"
></ComposeConfig>

<section v-else :class="{ _hideOverflow: !isCasa }" class="modal-card-body pt-3">
Expand Down Expand Up @@ -850,7 +849,6 @@ export default {
counterPatchGetStoreList: 0,
searchAndSourcesStatus: '',
activeAppStoreSourceInput: false,
is_uncontrolled_install_params: false,
}
},
Expand Down Expand Up @@ -1337,7 +1335,7 @@ export default {
*/
installComposeApp (dockerComposeCommands, appName) {
return this.$openAPI.appManagement.compose
.installComposeApp(dockerComposeCommands, false, true, this.is_uncontrolled_install_params)
.installComposeApp(dockerComposeCommands, false, true)
.then(res => {
if (res.status !== 200) {
this.dockerComposeConfig = dockerComposeCommands
Expand Down Expand Up @@ -1382,10 +1380,6 @@ export default {
})
},
updateIsUncontrolledInstallParams (is_uncontrolled_install_params) {
this.is_uncontrolled_install_params = is_uncontrolled_install_params
},
switchAppConfigContent (composeCommands) {
this.currentSlide = 1
this.sidebarOpen = false
Expand Down
6 changes: 1 addition & 5 deletions main/src/components/Apps/ComposeConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
@click="
() => {
service.image = service.image.split(':')[0] + ':latest'
$emit('updateIsUncontrolledInstallParams', false)
}
"
>
Expand All @@ -83,7 +82,6 @@
@click="
() => {
service.image = service.image.split(':')[0] + ':' + mainStableVersion
$emit('updateIsUncontrolledInstallParams', false)
}
"
>
Expand Down Expand Up @@ -545,10 +543,8 @@ export default {
* @return {*} void
*/
changeIcon (image) {
// 1、set this.configData['x-casaos'].icon
// set this.configData['x-casaos'].icon
this.configData['x-casaos'].icon = this.getIconFromImage(image)
// 2、emit updateIsUncontrolledInstallParams for is_uncontrolled
this.$emit('updateIsUncontrolledInstallParams', true)
},
/**
Expand Down

0 comments on commit fc9c013

Please sign in to comment.