Skip to content

Commit

Permalink
Merge pull request #2281 from nextcloud/bugfix/noid/better-start-call…
Browse files Browse the repository at this point in the history
…-setting

Better start call setting
  • Loading branch information
nickvergessen authored Oct 8, 2019
2 parents 11ff086 + ef2f4e6 commit 5c0ada8
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion css/settings-admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
border-color: $color-error;
}

label {
div.signaling-server label {
margin: 0 20px;
display: inline-block;
}
Expand Down
2 changes: 1 addition & 1 deletion js/admin/general-settings.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/admin/general-settings.js.map

Large diffs are not rendered by default.

20 changes: 17 additions & 3 deletions vue/src/views/GeneralSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
v-model="startCalls"
:options="startCallOptions"
label="label"
track-by="value" />
track-by="value"
@input="saveChanges" />
</p>
<p>
<em>{{ t('spreed', 'When a call has started, everyone with access to the conversation can join the call.') }}</em>
</p>
</div>
</template>
Expand Down Expand Up @@ -68,7 +72,7 @@ export default {
saveChanges() {
this.loading = true

OCP.AppConfig.setValue('spreed', 'start_calls', this.startCalls, {
OCP.AppConfig.setValue('spreed', 'start_calls', this.startCalls.value, {
success: function() {
this.loading = false
}.bind(this)
Expand All @@ -77,9 +81,19 @@ export default {
}
}
</script>
<style scoped>
<style scoped lang="scss">
p {
display: flex;
align-items: center;

label {
display: block;
margin-right: 10px;
}
}

.multiselect {
flex-grow: 1;
max-width: 300px;
}
</style>

0 comments on commit 5c0ada8

Please sign in to comment.