changed a lot regarding rec state, etc.

This commit is contained in:
Tobias Kurze
2019-12-03 16:05:15 +01:00
parent 39e7bbd098
commit 6b7b9f8f09
13 changed files with 3758 additions and 3757 deletions

View File

@@ -14,7 +14,7 @@
<hr/>
<p>{{$t('Favorite recorders:')}}</p>
<b-card-group deck>
<RecorderState v-for="recorder in profile.favorite_recorders" :recorder="recorder"/>
<RecorderState v-for="recorder in profile.favorite_recorders" :recorder="recorder" v-bind:key="recorder.id"/>
</b-card-group>
</div>
</div>
@@ -57,8 +57,7 @@
}
addFavoriteRecorderToProfile(recorder) {
console.log(recorder);
userRepository.addFavoriteRecorder(recorder["recorder_id"]).then(() => {
userRepository.addFavoriteRecorder(recorder.recorder_id).then(() => {
this.$store.dispatch('loadProfile');
});
}