403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/ilovecveti.ru/bitrix/js/catalog/warehouse-master/src/components/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/ilovecveti.ru/bitrix/js/catalog/warehouse-master/src/components/footer.js
import { mapGetters, mapMutations } from 'ui.vue3.vuex';

export const Footer = {
	computed: {
		getButtonClass(): Array
		{
			const classes = [
				'ui-btn',
				'ui-btn-round',
				'ui-btn-no-caps',
				'ui-btn-lg',
				'catalog-warehouse__master-clear--btn',
			];
			if (this.isLoading === true)
			{
				classes.push('ui-btn-wait');
			}

			if (this.isRestrictedAccess === true)
			{
				classes.push('ui-btn-disabled');
			}

			if (this.isUsed === true)
			{
				classes.push('ui-btn-default');
			}
			else
			{
				classes.push('ui-btn-success');
			}

			return classes;
		},
		getHintClass(): Array
		{
			return [
				'ui-link-dashed',
				'catalog-warehouse__master-clear--hint',
			];
		},
		getButtonText(): String
		{
			return this.isUsed
				? this.$Bitrix.Loc.getMessage('CAT_WAREHOUSE_MASTER_NEW_DEACTIVATE_BUTTON')
				: this.$Bitrix.Loc.getMessage('CAT_WAREHOUSE_MASTER_NEW_ACTIVATE_BUTTON');
		},
		...mapGetters([
			'isLoading',
			'isUsed',
			'isRestrictedAccess',
		]),
	},

	methods: {
		openHelpdesk()
		{
			if (top.BX.Helper)
			{
				top.BX.Helper.show('redirect=detail&code=14566618');
			}
		},
		onButtonClick()
		{
			this.$emit('onButtonClick');
		},
		...mapMutations([
			'setIsLoading',
		]),
	},

	// language = Vue
	template: `
	<div class="catalog-warehouse__master-clear--footer">
		<button 
			:class="getButtonClass"
			v-on:click="onButtonClick"
		>{{ getButtonText }}</button>
		<span 
			:class="getHintClass"
			v-on:click="openHelpdesk"
		>
			{{ $Bitrix.Loc.getMessage('CAT_WAREHOUSE_MASTER_NEW_HINT_MORE') }}
		</span>
	</div>
	`,
};

Youez - 2016 - github.com/yon3zu
LinuXploit