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/cvetdv.ru/bitrix/js/im/v2/component/textarea/src/components/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/cvetdv.ru/bitrix/js/im/v2/component/textarea/src/components/send-button.js
import { Settings } from 'im.v2.const';
import { Utils } from 'im.v2.lib.utils';

import type { ImModelChat } from 'im.v2.model';

// @vue/component
export const SendButton = {
	props:
	{
		dialogId: {
			type: String,
			default: '',
		},
		editMode: {
			type: Boolean,
			default: false,
		},
		isDisabled: {
			type: Boolean,
			default: false,
		},
	},
	computed:
	{
		dialog(): ImModelChat
		{
			return this.$store.getters['chats/get'](this.dialogId, true);
		},
		dialogTypeClass(): string
		{
			return `--${this.dialog.type}`;
		},
		buttonHint(): string
		{
			const sendByEnter = this.$store.getters['application/settings/get'](Settings.hotkey.sendByEnter);
			const ctrlKey = Utils.platform.isMac() ? 'Cmd' : 'Ctrl';
			const sendCombination = sendByEnter ? 'Enter' : `${ctrlKey} + Enter`;

			return this.loc('IM_TEXTAREA_ICON_SEND_TEXT', {
				'#SEND_MESSAGE_COMBINATION#': sendCombination,
			});
		},
	},
	methods:
	{
		loc(phraseCode: string, replacements: {[string]: string} = {}): string
		{
			return this.$Bitrix.Loc.getMessage(phraseCode, replacements);
		},
	},
	template: `
		<div
			:title="buttonHint"
			class="bx-im-send-panel__button_container"
			:class="[{'--edit': editMode, '--disabled': isDisabled, }, dialogTypeClass]"
		></div>
	`,
};

Youez - 2016 - github.com/yon3zu
LinuXploit