<commit_before><template>
    <div>
        <md-list>
            <md-list-item>
                <span>{{ $t('teams.intro') }}</span>
            </md-list-item>

            <md-list-item v-for="(team, index) in teamSet" :key="index">
                <md-icon>group</md-icon>
                <span @click="editTeam({id: team.id})">{{ team.name }} ({{ $tc('teams.players', team.players.length, {count: team.players.length}) }})</span>
                <md-button class="md-icon-button md-list-action" @click="editTeam({id: team.id})">
                    <md-icon class="md-primary">edit</md-icon>
                </md-button>
                <md-button class="md-icon-button md-list-action" @click="deleteTeam({id: team.id})">
                    <md-icon class="md-warn">remove_circle</md-icon>
                </md-button>
            </md-list-item>

            <md-list-item>
                <span/>
                <md-button class="md-icon-button md-list-action" @click="createTeam()">
                    <md-icon class="md-primary">group_add</md-icon>
                </md-button>
            </md-list-item>
        </md-list>

        <md-button class="md-raised md-primary" :disabled="!readyToStart" @click="start()">
            {{ $t('teams.start') }}
            <md-icon>play_arrow</md-icon>
        </md-button>
    </div>
</template>

<script>
    import { mapMutations, mapGetters } from 'vuex';

    export default {
        computed: {
            ...mapGetters([
                'teamSet',
                'readyToStart'
            ])
        },

        methods: {
            ...mapMutations([
                'createTeam',
                'deleteTeam'
            ]),

            editTeam({id}) {
                this.$router.push({name: 'team', params: {id}});
            },

            start() {
                this.$store.dispatch('startGame').then(() => {
                    this.$router.replace({name: 'game-index'});
                });
            }
        }
    }
</script><commit_msg>Disabled user-select for team name on teams page<commit_after><template>
    <div>
        <md-list>
            <md-list-item>
                <span>{{ $t('teams.intro') }}</span>
            </md-list-item>

            <md-list-item v-for="(team, index) in teamSet" :key="index">
                <md-icon>group</md-icon>
                <span class="no-select" @click="editTeam({id: team.id})">{{ team.name }} ({{ $tc('teams.players', team.players.length, {count: team.players.length}) }})</span>
                <md-button class="md-icon-button md-list-action" @click="editTeam({id: team.id})">
                    <md-icon class="md-primary">edit</md-icon>
                </md-button>
                <md-button class="md-icon-button md-list-action" @click="deleteTeam({id: team.id})">
                    <md-icon class="md-warn">remove_circle</md-icon>
                </md-button>
            </md-list-item>

            <md-list-item>
                <span/>
                <md-button class="md-icon-button md-list-action" @click="createTeam()">
                    <md-icon class="md-primary">group_add</md-icon>
                </md-button>
            </md-list-item>
        </md-list>

        <md-button class="md-raised md-primary" :disabled="!readyToStart" @click="start()">
            {{ $t('teams.start') }}
            <md-icon>play_arrow</md-icon>
        </md-button>
    </div>
</template>

<script>
    import { mapMutations, mapGetters } from 'vuex';

    export default {
        computed: {
            ...mapGetters([
                'teamSet',
                'readyToStart'
            ])
        },

        methods: {
            ...mapMutations([
                'createTeam',
                'deleteTeam'
            ]),

            editTeam({id}) {
                this.$router.push({name: 'team', params: {id}});
            },

            start() {
                this.$store.dispatch('startGame').then(() => {
                    this.$router.replace({name: 'game-index'});
                });
            }
        }
    }
</script>

<style>
    .no-select {
        user-select: none;
    }
</style>
{'fraction_non_alphanumeric': 0.1790937425077919, 'fraction_numerical': 0.0, 'mean_word_length': 1.4326530612244899, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 81, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6772597', 'n_tokens_mistral': 1302, 'n_tokens_neox': 1239, 'n_words': 188}