1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
|
<style include="cr-shared-style settings-shared"></style>
<!-- TODO(crbug.com/362225975): Remove V2 suffixes. -->
<settings-animated-pages id="pages" section="ai"
focus-config="[[focusConfig_]]">
<div route-path="default">
<cr-link-row id="passwordChangeRowV2" class="hr"
hidden="[[!showPasswordChangeControl_]]"
start-icon="cr20:password"
label="$i18n{passwordChangeSettingLabel}"
sub-label="$i18n{passwordChangeSettingSubLabel}"
on-click="onPasswordChangeRowClick_" external>
</cr-link-row>
<cr-link-row id="autofillAiRowV2" class="hr"
hidden="[[!showAutofillAiControl_]]"
start-icon="settings20:text-analysis"
label="$i18n{autofillAiPageTitle}"
sub-label="$i18n{autofillAiDescription}"
role-description="$i18n{subpageArrowRoleDescription}"
on-click="onAutofillAiRowClick_">
</cr-link-row>
<cr-link-row id="historySearchRowV2" class="hr"
hidden="[[!showHistorySearchControl_]]"
start-icon="settings20:search-spark"
label="$i18n{historySearchSettingLabel}"
sub-label="[[getHistorySearchSublabel_(
prefs.optimization_guide.history_search_setting_state.value)]]"
role-description="$i18n{subpageArrowRoleDescription}"
on-click="onHistorySearchRowClick_">
</cr-link-row>
<cr-link-row id="compareRowV2" class="hr"
hidden="[[!showCompareControl_]]"
start-icon="settings20:table-chart-organize"
label="$i18n{aiCompareLabel}"
sub-label="$i18n{aiCompareSublabel}"
role-description="$i18n{subpageArrowRoleDescription}"
on-click="onCompareRowClick_">
</cr-link-row>
<cr-link-row id="composeRowV2" class="hr"
hidden="[[!showComposeControl_]]"
start-icon="settings20:pen-spark"
label="$i18n{aiComposeLabel}"
sub-label="$i18n{aiComposeSublabelV2}"
role-description="$i18n{subpageArrowRoleDescription}"
on-click="onComposeRowClick_">
</cr-link-row>
<cr-link-row id="tabOrganizationRowV2" class="hr"
hidden="[[!showTabOrganizationControl_]]"
start-icon="settings20:auto-tab-group"
label="$i18n{tabOrganizationSettingLabel}"
sub-label="$i18n{tabOrganizationSettingSublabelV2}"
role-description="$i18n{subpageArrowRoleDescription}"
on-click="onTabOrganizationRowClick_">
</cr-link-row>
</div>
<template is="dom-if" if="[[showHistorySearchControl_]]">
<template is="dom-if" route-path="/ai/historySearch">
<settings-subpage id="historySearch"
associated-control="[[$$('#historySearchRowV2')]]"
page-title="$i18n{historySearchSettingLabel}">
<settings-history-search-page prefs="{{prefs}}">
</settings-history-search-page>
</settings-subpage>
</template>
</template>
<template is="dom-if" if="[[showCompareControl_]]">
<template is="dom-if" route-path="/ai/compareProducts">
<settings-subpage id="compare"
associated-control="[[$$('#compareRowV2')]]"
page-title="$i18n{aiCompareLabel}">
<settings-ai-compare-subpage prefs="{{prefs}}">
</settings-ai-compare-subpage>
</settings-subpage>
</template>
</template>
<template is="dom-if" if="[[showComposeControl_]]">
<template is="dom-if" route-path="/ai/helpMeWrite">
<settings-subpage id="compose"
associated-control="[[$$('#composeRowV2')]]"
page-title="$i18n{aiComposeLabel}">
<settings-offer-writing-help-page prefs="{{prefs}}">
</settings-offer-writing-help-page>
</settings-subpage>
</template>
</template>
<template is="dom-if" if="[[showTabOrganizationControl_]]">
<template is="dom-if" route-path="/ai/tabOrganizer">
<settings-subpage id="tabOrganization"
associated-control="[[$$('#tabOrganizationRowV2')]]"
page-title="$i18n{tabOrganizationSettingLabel}">
<settings-ai-tab-organization-subpage prefs="{{prefs}}">
</settings-ai-tab-organization-subpage>
</settings-subpage>
</template>
</template>
</settings-animated-pages>
|