* Upgrade Stimulus to 3.0 * Remove unused variable * Bump postcss from 8.3.8 to 8.3.9 (#14956) Bumps [postcss](https://github.com/postcss/postcss) from 8.3.8 to 8.3.9. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md) - [Commits](https://github.com/postcss/postcss/compare/8.3.8...8.3.9) --- updated-dependencies: - dependency-name: postcss dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
17 lines
396 B
JavaScript
17 lines
396 B
JavaScript
import { Controller } from '@hotwired/stimulus';
|
|
|
|
export default class ConsumerAppController extends Controller {
|
|
static targets = ['platform', 'teamId'];
|
|
|
|
connect() {
|
|
this.checkPlatform();
|
|
}
|
|
|
|
checkPlatform() {
|
|
if (this.platformTarget.value === 'ios') {
|
|
this.teamIdTarget.classList.remove('hidden');
|
|
} else {
|
|
this.teamIdTarget.classList.add('hidden');
|
|
}
|
|
}
|
|
}
|