-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1201 from NYCPlanning/develop
Merging feature enhancements to master for prod release
- Loading branch information
Showing
50 changed files
with
1,307 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import Component from '@ember/component'; | ||
|
||
const TOTAL_SLIDES = 7; | ||
|
||
export default Component.extend({ | ||
tagName: '', | ||
open: true, | ||
slideNumber: Math.floor(Math.random() * TOTAL_SLIDES) + 1, // start on a random slide | ||
|
||
actions: { | ||
toggleModal() { | ||
this.toggleProperty('open'); | ||
}, | ||
nextSlide() { | ||
if (this.slideNumber < TOTAL_SLIDES) { | ||
this.set('slideNumber', this.slideNumber + 1); | ||
} else { | ||
// comment out the line below to disable infinite looping | ||
this.set('slideNumber', 1); | ||
} | ||
}, | ||
prevSlide() { | ||
if (this.slideNumber > 1) { | ||
this.set('slideNumber', this.slideNumber - 1); | ||
} else { | ||
// comment out the line below to disable infinite looping | ||
this.set('slideNumber', TOTAL_SLIDES); | ||
} | ||
}, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
import Component from '@ember/component'; | ||
import { inject as service } from '@ember/service'; | ||
import { computed } from '@ember/object'; | ||
import { tracked } from '@glimmer/tracking'; | ||
|
||
export default class MainHeaderComponent extends Component { | ||
@service('print') printSvc; | ||
|
||
@service() media; | ||
|
||
bookmarks; | ||
@tracked bookmarks; | ||
|
||
@tracked savedLayerSets; | ||
|
||
@computed('bookmarks.length', 'savedLayerSets.length') | ||
get totalBookmarks() { | ||
return this.bookmarks.length + this.savedLayerSets.length; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.