Skip to content

Commit 5ad9c4c

Browse files
committed
Renaming countrycode storage key, resolves #139
1 parent f833424 commit 5ad9c4c

8 files changed

Lines changed: 10 additions & 10 deletions

File tree

mopidy_spotmop/static/app-annotated.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37974,7 +37974,7 @@ angular.module('spotmop.services.spotify', [])
3797437974
limit = 40;
3797537975

3797637976
var timestamp = $filter('date')(new Date(),'yyyy-MM-ddTHH:mm:ss');
37977-
var country = SettingsService.getSetting('spotify.countrycode');
37977+
var country = SettingsService.getSetting('spotify.country');
3797837978
if( !country ) country = 'NZ';
3797937979
var deferred = $q.defer();
3798037980

mopidy_spotmop/static/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37974,7 +37974,7 @@ angular.module('spotmop.services.spotify', [])
3797437974
limit = 40;
3797537975

3797637976
var timestamp = $filter('date')(new Date(),'yyyy-MM-ddTHH:mm:ss');
37977-
var country = SettingsService.getSetting('spotify.countrycode');
37977+
var country = SettingsService.getSetting('spotify.country');
3797837978
if( !country ) country = 'NZ';
3797937979
var deferred = $q.defer();
3798037980

mopidy_spotmop/static/app.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mopidy_spotmop/static/app.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mopidy_spotmop/static/app/services/spotify/service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ angular.module('spotmop.services.spotify', [])
846846
limit = 40;
847847

848848
var timestamp = $filter('date')(new Date(),'yyyy-MM-ddTHH:mm:ss');
849-
var country = SettingsService.getSetting('spotify.countrycode');
849+
var country = SettingsService.getSetting('spotify.country');
850850
if( !country ) country = 'NZ';
851851
var deferred = $q.defer();
852852

mopidy_spotmop/static/app/settings/template.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,15 @@ <h4 class="section-title underline">
121121
<div class="field">
122122
<div class="label">Country code</div>
123123
<div class="input">
124-
<input type="text" name="countrycode" placeholder="NZ" class="autosave" ng-model="storage.countrycode" ng-blur="SaveFields( $event )" />
124+
<input type="text" name="spotify.country" placeholder="NZ" class="autosave" ng-model="storage.spotify.country" ng-blur="SaveFields( $event )" />
125125
<i class="fa fa-check autosave-success"></i>
126126
</div>
127127
</div>
128128

129129
<div class="field">
130130
<div class="label">Locale</div>
131131
<div class="input">
132-
<input type="text" name="spotifylocale" placeholder="en_NZ" class="autosave" ng-model="storage.spotifylocale" ng-blur="SaveFields( $event )" />
132+
<input type="text" name="spotify.locale" placeholder="en_NZ" class="autosave" ng-model="storage.spotify.locale" ng-blur="SaveFields( $event )" />
133133
<i class="fa fa-check autosave-success"></i>
134134
</div>
135135
</div>

src/app/services/spotify/service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ angular.module('spotmop.services.spotify', [])
846846
limit = 40;
847847

848848
var timestamp = $filter('date')(new Date(),'yyyy-MM-ddTHH:mm:ss');
849-
var country = SettingsService.getSetting('spotify.countrycode');
849+
var country = SettingsService.getSetting('spotify.country');
850850
if( !country ) country = 'NZ';
851851
var deferred = $q.defer();
852852

src/app/settings/template.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,15 @@ <h4 class="section-title underline">
121121
<div class="field">
122122
<div class="label">Country code</div>
123123
<div class="input">
124-
<input type="text" name="countrycode" placeholder="NZ" class="autosave" ng-model="storage.countrycode" ng-blur="SaveFields( $event )" />
124+
<input type="text" name="spotify.country" placeholder="NZ" class="autosave" ng-model="storage.spotify.country" ng-blur="SaveFields( $event )" />
125125
<i class="fa fa-check autosave-success"></i>
126126
</div>
127127
</div>
128128

129129
<div class="field">
130130
<div class="label">Locale</div>
131131
<div class="input">
132-
<input type="text" name="spotifylocale" placeholder="en_NZ" class="autosave" ng-model="storage.spotifylocale" ng-blur="SaveFields( $event )" />
132+
<input type="text" name="spotify.locale" placeholder="en_NZ" class="autosave" ng-model="storage.spotify.locale" ng-blur="SaveFields( $event )" />
133133
<i class="fa fa-check autosave-success"></i>
134134
</div>
135135
</div>

0 commit comments

Comments
 (0)