Browse Source

minor fix

Gerald 9 years ago
parent
commit
adc89cd13a
2 changed files with 3 additions and 2 deletions
  1. 2 1
      gulpfile.js
  2. 1 1
      src/options/components/sync-service.html

+ 2 - 1
gulpfile.js

@@ -56,9 +56,10 @@ gulp.task('eslint', () => (
   .pipe(eslint.format())
 ));
 
-const cacheObj = templateCache();
+var cacheObj;
 
 gulp.task('templates', () => {
+  cacheObj = templateCache();
   var stream = merge2([
     gulp.src(paths.cache),
     gulp.src(paths.templates).pipe(cacheObj),

+ 1 - 1
src/options/components/sync-service.html

@@ -4,7 +4,7 @@
       v-el:enabled @change="update">
     <span>{{labelText}}</span>
   </label>
-  <button @click="authenticate" :disabled="authState!=='unauthorized'">
+  <button @click="authenticate" :disabled="service.authState!=='unauthorized'">
     {{labelAuthenticate}}
   </button>
   <button :disabled="disableSync" class="sync-start" @click="retry">