fix(front): use privacy slider in user settings
This commit is contained in:
		
							parent
							
								
									378455b0eb
								
							
						
					
					
						commit
						8122426cf4
					
				| 
						 | 
					@ -19,8 +19,9 @@ import PasswordInput from '~/components/forms/PasswordInput.vue'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import Input from '~/components/ui/Input.vue'
 | 
					import Input from '~/components/ui/Input.vue'
 | 
				
			||||||
import Layout from '~/components/ui/Layout.vue'
 | 
					import Layout from '~/components/ui/Layout.vue'
 | 
				
			||||||
 | 
					import Slider from '~/components/ui/Slider.vue'
 | 
				
			||||||
import Alert from '~/components/ui/Alert.vue'
 | 
					import Alert from '~/components/ui/Alert.vue'
 | 
				
			||||||
import Header from '~/components/ui/Header.vue'
 | 
					import Heading from '~/components/ui/Heading.vue'
 | 
				
			||||||
import Button from '~/components/ui/Button.vue'
 | 
					import Button from '~/components/ui/Button.vue'
 | 
				
			||||||
import Link from '~/components/ui/Link.vue'
 | 
					import Link from '~/components/ui/Link.vue'
 | 
				
			||||||
import Textarea from '~/components/ui/Textarea.vue'
 | 
					import Textarea from '~/components/ui/Textarea.vue'
 | 
				
			||||||
| 
						 | 
					@ -278,9 +279,9 @@ fetchOwnedApps()
 | 
				
			||||||
    main
 | 
					    main
 | 
				
			||||||
    stack
 | 
					    stack
 | 
				
			||||||
  >
 | 
					  >
 | 
				
			||||||
    <Header
 | 
					    <Heading
 | 
				
			||||||
      page-heading
 | 
					 | 
				
			||||||
      :h1="t('components.auth.Settings.header.accountSettings')"
 | 
					      :h1="t('components.auth.Settings.header.accountSettings')"
 | 
				
			||||||
 | 
					      page-heading
 | 
				
			||||||
    />
 | 
					    />
 | 
				
			||||||
    <Layout
 | 
					    <Layout
 | 
				
			||||||
      form
 | 
					      form
 | 
				
			||||||
| 
						 | 
					@ -327,20 +328,11 @@ fetchOwnedApps()
 | 
				
			||||||
          <p v-if="sharedLabels.fields[f.id].help">
 | 
					          <p v-if="sharedLabels.fields[f.id].help">
 | 
				
			||||||
            {{ sharedLabels.fields[f.id].help }}
 | 
					            {{ sharedLabels.fields[f.id].help }}
 | 
				
			||||||
          </p>
 | 
					          </p>
 | 
				
			||||||
          <select
 | 
					          <Slider
 | 
				
			||||||
            v-if="f.type === 'dropdown'"
 | 
					            v-if="f.type === 'dropdown'"
 | 
				
			||||||
            :id="f.id"
 | 
					 | 
				
			||||||
            v-model="f.value"
 | 
					            v-model="f.value"
 | 
				
			||||||
            class="ui dropdown"
 | 
					            :options="Object.fromEntries(f.choices.map(c => [c, sharedLabels.fields[f.id].choices?.[c] || c]))"
 | 
				
			||||||
          >
 | 
					          />
 | 
				
			||||||
            <option
 | 
					 | 
				
			||||||
              v-for="(c, key) in f.choices"
 | 
					 | 
				
			||||||
              :key="key"
 | 
					 | 
				
			||||||
              :value="c"
 | 
					 | 
				
			||||||
            >
 | 
					 | 
				
			||||||
              {{ sharedLabels.fields[f.id].choices?.[c] }}
 | 
					 | 
				
			||||||
            </option>
 | 
					 | 
				
			||||||
          </select>
 | 
					 | 
				
			||||||
        </template>
 | 
					        </template>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
      <Button
 | 
					      <Button
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue