			} else {
				this.set('currSelectedItemIdx', 0);
			}
		},
		toggleDropdown () {
			this.set('dropdownOpened', !this.get('dropdownOpened'));
			this.set('currSelectedItemIdx', null);
		},
		selectItem (version) {
			this.toggleDropdown();
			this.set('version', version);
		},
	};
</script>
