Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/components/User/Profile.vue
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | <div class="container"> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="form-group row"> | <div class="form-group row"> | ||||
<label for="password_confirmaton" class="col-sm-4 col-form-label">Confirm password</label> | <label for="password_confirmaton" class="col-sm-4 col-form-label">Confirm password</label> | ||||
<div class="col-sm-8"> | <div class="col-sm-8"> | ||||
<input type="password" class="form-control" id="password_confirmation" v-model="profile.password_confirmation"> | <input type="password" class="form-control" id="password_confirmation" v-model="profile.password_confirmation"> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
<button class="btn btn-primary" type="submit"><svg-icon icon="check"></svg-icon> Submit</button> | <button class="btn btn-primary button-submit" type="submit"><svg-icon icon="check"></svg-icon>Submit</button> | ||||
<router-link v-if="$root.isController(wallet_id)" class="btn btn-danger button-delete" | |||||
vanmeeuwen: This is where a merge on to current origin/master fails. Please double-check the intended… | |||||
to="/profile/delete" tag="button">Delete account</router-link> | |||||
</form> | </form> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</template> | </template> | ||||
<script> | <script> | ||||
export default { | export default { | ||||
data() { | data() { | ||||
return { | return { | ||||
profile: {}, | profile: {}, | ||||
wallet_id: null, | |||||
countries: window.config.countries | countries: window.config.countries | ||||
} | } | ||||
}, | }, | ||||
created() { | created() { | ||||
this.wallet_id = this.$store.state.authInfo.wallet.id | |||||
this.profile = this.$store.state.authInfo.settings | this.profile = this.$store.state.authInfo.settings | ||||
}, | }, | ||||
mounted() { | mounted() { | ||||
$('#first_name').focus() | $('#first_name').focus() | ||||
}, | }, | ||||
methods: { | methods: { | ||||
submit() { | submit() { | ||||
if (this.profile.country) { | if (this.profile.country) { | ||||
Show All 18 Lines |
This is where a merge on to current origin/master fails. Please double-check the intended result.