Skip to content

Commit

Permalink
Fixed "controlling" title
Browse files Browse the repository at this point in the history
  • Loading branch information
thelevicole committed Mar 26, 2018
1 parent 79e0997 commit 5a28384
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions assets/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions assets/javascripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@
},
set: function() {
app.controlling = {
title: this.group.name,
selector: 'group_id',
id: this.group.id,
data: this.group.lights
Expand Down Expand Up @@ -272,6 +273,7 @@
},
set: function() {
app.controlling = {
title: this.data.label,
selector: 'id',
id: this.data.id,
data: this.data
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div vue-app>

<header>
<span v-if="controlling">{{ controlling.label || controlling.name }}</span>
<span v-if="controlling">{{ controlling.title }}</span>
<img v-if="!controlling" src="./images/logo.svg" alt="LIFX" width="52" height="20">
<a v-on:click.prevent="logout" v-if="access_token && lights.length">Logout</a>
</header>
Expand Down
2 changes: 1 addition & 1 deletion js/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5a28384

Please sign in to comment.